#include"SList.h"

void SLIstText01()
{
	SLTNode* node1 = (SLTNode*)malloc(sizeof(SLTNode));
	if (node1 == NULL)
	{
		perror("malloc");
		exit(1);
	}
	node1->date = 1;
	node1->next = NULL;
	/*SLTNode* node2 = (SLTNode*)malloc(sizeof(SLTNode));
	if (node2 == NULL)
	{
		perror("malloc");
		exit(1);
	}
	node2->date = 2;
	node1->next = node2;
	node2->next = NULL;*/
	/*SLTNode* node3 = (SLTNode*)malloc(sizeof(SLTNode));
	if (node3 != NULL)
	node3->date = 3;

	node2->next = node3;
	SLTNode* node4 = (SLTNode*)malloc(sizeof(SLTNode));
	if (node4 != NULL)
	node4->date = 4;
	node3->next = node4;
	
	SLTNode* node5 = (SLTNode*)malloc(sizeof(SLTNode));
	if (node5 != NULL)
	node5->date = 5;
	node4->next = node5;
	node5->next = NULL;*/
	SLTNode* plist = node1;
	//printf("%x", node1->next);
	//SLTPrint(plist);
	SLTPushBack(plist, 2);
	SLTPushBack(plist, 3);
	/*SLTPushBack(&node1, 3);
	SLTPushBack(&node1, 4);*/
	SLTPrint(plist);
}
int main()
{
	SLIstText01();
	return 0;
}